package com.itheima.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import javax.persistence.Column;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name="t_blog")
public class Blog implements Serializable {

    @Id
    @Column(name = "uid")
    private String  uid;

    @Column(name = "title")
    private String  title ;
    @Column(name = "summary")
    private String  summary ;
    @Column(name = "content")
    private String  content ;
    @Column(name = "tag_uid")
    private String  tagUid;
    @Column(name = "click_count")
    private int  clickCount ;
    @Column(name = "collect_count")
    private int  collectCount ;
    @Column(name = "file_uid")
    private String  fileUid;
    @Column(name = "status")
    private byte  status ;
    @Column(name = "create_time")
    private Date  createTime ;
    @Column(name = "update_time")
    private Date  updateTime ;
    @Column(name = "admin_uid")
    private String  adminUid;
    @Column(name = "is_original")
    private String  isOriginal ;
    @Column(name = "author")
    private String  author ;
    @Column(name = "articles_part")
    private String  articlesPart ;
    @Column(name = "blog_sort_uid")
    private String  blogSortUid;
    @Column(name = "level")
    private byte  level ;
    @Column(name = "is_publish")
    private String  isPublish ;
    @Column(name = "sort")
    private int  sort ;
    @Column(name = "start_comment")
    private byte  startComment ;

}